package com.wenshi.common.constant;

public class ModbusConstants {
    public static final int ERROR_OFFSET = 0x80;
    public static final int SYNC_RESPONSE_TIMEOUT = 20000;
    public static final int TRANSACTION_IDENTIFIER_MAX = 65535;
    public static final int ADU_MAX_LENGTH = 260;
    public static final int MAP_LENGTH = 7;
    public static final int DEFAULT_MODBUS_PORT = 502;
    public static final short DEFAULT_PROTOCOL_IDENTIFIER = 0;
    public static final short DEFAULT_UNIT_IDENTIFIER = 255;

    public static String test="test";
    public static final byte READ_COILS=0x01;
    public static final byte READ_DISCRETE_INPUTS=0x02;
    public static final byte READ_HOLDING_REGISTERS=0x03;
    public static final byte READ_INPUT_REGISTERS=0x04;
    public static final byte WRITE_SINGLE_COIL=0x05;
    public static final byte WRITE_SINGLE_REGISTER=0x06;
    public static final byte WRITE_MULTIPLE_COILS=0x0F;
    public static final byte WRITE_MULTIPLE_REGISTERS=0x10;

    //运行电流
    public static String runPowerCurrent="powerCurrentFeedback";
    //
    public static String currentHCapacity="currentHproductionCapacity";

}
